import { axios } from '@/utils/request'
export function templateList(params) {
    return axios({
      url: '/school/share-templates',
      method: 'post',
      data: params
    })
  }
  export function openOrClose(params,id) {
    return axios({
      url: '/school/share-templates/'+id+'/enable-status',
      method: 'post',
      data: params
    })
  }
  export function createTemplate(params) {
    return axios({
      url: '/school/share-templates/create',
      method: 'post',
      data: params
    })
  }

  export function editTemplate(params,id) {
    return axios({
      url: '/school/share-templates/'+id+'/update',
      method: 'post',
      data: params
    })
  }
  export function delTemplate(id) {
    return axios({
      url: '/school/share-templates/'+id+'/delete',
      method: 'post',
    })
  }
  export function templateInfo(params,id) {
    return axios({
      url: '/school/share-templates/'+id,
      method: 'post',
      data: params
    })
  }
  
  export function creatorList(params) {
    return axios({
      url: '/school/share-templates/create-user-list',
      method: 'post',
      data: params
    })
  }
   

  